<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#a").click(function(){
				var title = "title";
				var array = ["name","password"];
				parent.popUpCenter(title,generateHtml(array));
			});
		});
		function generateHtml(array){
			var html = "";
			html += "<button onclick='test();'>保存</button></p>";
			for(var i=0;i<array.length;i++){
				html +="<input name='"+array[i]+"' class='popUpInput' value='test' /><button class='up'>向上</button><button class='down'>向下</button><button class='del'>删除</button><p/>"
			}
			html += "<input name='0' class='popUpInput' /></p>";
			html += "<button class='save'>保存</button></p>";
			return html;
		}
	</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<button id="a">a1</button>
</body>
</html>